//package com.house.api.controller;
//
//import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
//import com.house.api.config.MyCOSClient;
//import com.house.common.result.Result;
//import com.house.model.entity.House;
//import com.house.model.vo.HouseVo;
//import com.house.service.mapper.HouseMapper;
//import com.house.service.service.ITestService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.BeanUtils;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.math.BigDecimal;
//import java.util.ArrayList;
//import java.util.List;
//
//@RestController
//@RequestMapping("/test")
//@Api(tags = "测试接口")
//public class TestController {
//
//    @Autowired
//    private HouseMapper houseMapper;
//
//    @Autowired
//    private MyCOSClient client;
//
//    @Autowired
//    private ITestService testService;
//
//    @GetMapping
//    @ApiOperation("测试请求")
//    public Result test() {
//        String msg = testService.testException();
//        return Result.ok(msg);
//    }
//
////    @GetMapping("/getHouse")
////    public Result getHouse() {
////        QueryWrapper<House> wrapper = new QueryWrapper<>();
////        List<House> houses = houseMapper.selectList(wrapper);
////        List<HouseVo> houseVos = new ArrayList<>();
////        for (House house : houses) {
////            HouseVo houseVo = new HouseVo();
////            BeanUtils.copyProperties(house,houseVo);
////            String price = BigDecimal.valueOf((long) house.getLentMoney()).divide(new BigDecimal(100)).toString();
////            houseVo.setHouseMoney(Float.valueOf(price));
////            houseVos.add(houseVo);
////        }
////        return Result.ok(houseVos);
////    }
//
//}
